package com.wuxx.setup;

import org.apache.log4j.LogManager;
import org.apache.log4j.Logger;
import org.nutz.integration.quartz.NutQuartzCronJobFactory;
import org.nutz.ioc.Ioc;
import org.nutz.mvc.NutConfig;
import org.nutz.mvc.Setup;

public class ConfigSetup implements Setup {
    private static Logger log = LogManager.getLogger(ConfigSetup.class);

    @Override
    public void init(NutConfig nc) {
        Ioc ioc = nc.getIoc();
        // 触发quartz 工厂,将扫描job任务
        ioc.get(NutQuartzCronJobFactory.class);
    }

    @Override
    public void destroy(NutConfig nc) {

    }
}
